package com.example.zhu.mapper;


import com.example.zhu.entity.Transactions;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface TransactionMapper {

    @Insert("insert into transactions(openid, take_openid, number, CoinsBefore, CoinsAfter, moneyBefore, moneyAfter, TransactionDate, TransactionType, Fee)" +
            "values (#{openid},#{takeOpenid},#{number},#{coinsBefore},#{coinsAfter},#{moneyBefore},#{moneyAfter},#{transactionDate},#{transactionType},#{fee})")
    void insert(Transactions transactions);
}
